package com.hqyj.lyf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.lyf.pojo.QuestionBank;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface QuestionBankService extends IService<QuestionBank> {

     Map<String,Object> queryAllQuestion(int page,int limit);

     Map<String,Object> queryByQuestion(int page,int limit,QuestionBank questionBank);

     Map<String,Object> addQuestion(QuestionBank questionBank);

     Map<String,Object> addQuestions(MultipartFile file) throws IOException;

     Map<String,Object> updateQuestion(QuestionBank questionBank);

     Map<String,Object> deleteQuestion(List<Integer> quIds);
     Map<String,Object> deleteByQuId(Integer quId);

}
